package com.loong.common.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class DepromoResult<T> extends BaseDomain{
    private static final long serialVersionUID = 6497890227868832368L;

    private boolean success = Boolean.TRUE;

    private Integer code;

    private String message;

    private T data;


    public DepromoResult(boolean success, Integer code, String message, T data) {
        this.success = success;
        this.code = code;
        this.message = message;
        this.data = data;
    }

}
